﻿namespace Taobao.Model
{
    using Castle.ActiveRecord;
    using System;
    using System.Runtime.CompilerServices;

    [ActiveRecord]
    public class OrderInfo : ActiveRecordBase<OrderInfo>
    {
        private decimal? _adjustfee;
        private decimal? _discountfee;
        private string _iid;
        private string _itemMealName;
        private decimal _number;
        private long _numIid;
        private long _orderID;
        private string _outerIId;
        private string _price;
        private string _skuID;
        private string _skuPropertiesName;
        private string _title;
        private Taobao.Model.Trade _trade;
        [CompilerGenerated]
        private DateTime? _modified;
        [CompilerGenerated]
        private decimal? _payment;
        [CompilerGenerated]
        private long? _refundId;
        [CompilerGenerated]
        private string _status;

        [Property(ColumnType="Decimal")]
        public virtual decimal? Adjust_Fee
        {
            get
            {
                return this._adjustfee;
            }
            set
            {
                this._adjustfee = value;
            }
        }

        [Property(ColumnType="Decimal")]
        public virtual decimal? Discount_Fee
        {
            get
            {
                return this._discountfee;
            }
            set
            {
                this._discountfee = value;
            }
        }

        [Property(ColumnType="String")]
        public virtual string Iid
        {
            get
            {
                return this._iid;
            }
            set
            {
                this._iid = value;
            }
        }

        [Property(ColumnType="String")]
        public virtual string ItemMealName
        {
            get
            {
                return this._itemMealName;
            }
            set
            {
                this._itemMealName = value;
            }
        }

        [Property(ColumnType="DateTime")]
        public DateTime? Modified
        {
            [CompilerGenerated]
            get
            {
                return this._modified;
            }
            [CompilerGenerated]
            set
            {
                this._modified = value;
            }
        }

        [Property(ColumnType="Decimal")]
        public virtual decimal Number
        {
            get
            {
                return this._number;
            }
            set
            {
                this._number = value;
            }
        }

        [Property(ColumnType="Int64")]
        public virtual long NumIid
        {
            get
            {
                return this._numIid;
            }
            set
            {
                this._numIid = value;
            }
        }

        [PrimaryKey(PrimaryKeyType.Native, ColumnType="Int64")]
        public virtual long OrderID
        {
            get
            {
                return this._orderID;
            }
            set
            {
                this._orderID = value;
            }
        }

        [Property(ColumnType="String")]
        public virtual string OuterIId
        {
            get
            {
                return this._outerIId;
            }
            set
            {
                this._outerIId = value;
            }
        }

        [Property(ColumnType="Decimal")]
        public decimal? Payment
        {
            [CompilerGenerated]
            get
            {
                return this._payment;
            }
            [CompilerGenerated]
            set
            {
                this._payment = value;
            }
        }

        [Property(ColumnType="String")]
        public virtual string Price
        {
            get
            {
                return this._price;
            }
            set
            {
                this._price = value;
            }
        }

        [Property(ColumnType="Int64")]
        public long? RefundId
        {
            [CompilerGenerated]
            get
            {
                return this._refundId;
            }
            [CompilerGenerated]
            set
            {
                this._refundId = value;
            }
        }

        [Property(ColumnType="String")]
        public virtual string SkuID
        {
            get
            {
                return this._skuID;
            }
            set
            {
                this._skuID = value;
            }
        }

        [Property(ColumnType="String")]
        public virtual string SkuPropertiesName
        {
            get
            {
                return this._skuPropertiesName;
            }
            set
            {
                this._skuPropertiesName = value;
            }
        }

        [Property(ColumnType="String")]
        public string Status
        {
            [CompilerGenerated]
            get
            {
                return this._status;
            }
            [CompilerGenerated]
            set
            {
                this._status = value;
            }
        }

        [Property(ColumnType="String")]
        public virtual string Title
        {
            get
            {
                return this._title;
            }
            set
            {
                this._title = value;
            }
        }

        [BelongsTo]
        public virtual Taobao.Model.Trade Trade
        {
            get
            {
                return this._trade;
            }
            set
            {
                this._trade = value;
            }
        }
    }
}

